package com.cms.config;

/**
 * <p>Title: ECCM</p>
 *
 * <p>Description: Enterprise Collaboration, Customer, and Resources
 * Management</p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: eConage Software</p>
 *
 * @author not attributable
 * @version 1.0
 */
public class Sorting {

  private Sorting() {}

  // number of items per page shown up in each component
  public static final int NUM_OF_ITEMS_PER_PAGE = 10;


  // default layout type
  public static final int TWO_PANE = 1;
  public static final int THREE_PANE = 2;
  public static final int CROSS_PANE = 3;

  public static final int DEFAULT_LAYOUT = THREE_PANE;

  // for sorting
  public static final String ASC = "ASC";
  public static final String DSC = "DESC";


  public static String getSortByImage(String sortDir) {

    if (sortDir != null && sortDir.equals(ASC))
       return "arrow_up.gif";
    else
       return "arrow_down.gif";

  }
}
